<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
        }

        .artplayer-app {
            aspect-ratio: 16/9;
        }
    </style>
</head>
<body style="height: 2000px">
<div class="artplayer-app"></div>
<p style="height: 40px"></p>
<button onclick="setPip()">setPip</button>
<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.5.17/hls.min.js"></script>-->
<script>
    var art = new Artplayer({
        container: '.artplayer-app',
        url: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4',
        muted: true,
        autoplay: true,
        airplay: true,
        fullscreen: true,
    });
    art.controls.show = false;
    art.on('ready', () => {
        art.controls.show = false;

        setTimeout(() => {
            art.controls.show = true;
        }, 5000);
    });

    // setTimeout(() => {
    //     art.play();
    // }, 2000)
</script>
</body>
</html>
